package org.osiris.client.gestioncambio;

import com.extjs.gxt.ui.client.widget.LayoutContainer;
import com.extjs.gxt.ui.client.widget.VerticalPanel;
import com.extjs.gxt.ui.client.widget.HorizontalPanel;
import com.extjs.gxt.ui.client.widget.grid.Grid;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.grid.ColumnModel;
import java.util.Collections;
import com.extjs.gxt.ui.client.widget.grid.ColumnConfig;
import com.extjs.gxt.ui.client.widget.form.LabelField;
import com.extjs.gxt.ui.client.widget.form.TextArea;
import com.extjs.gxt.ui.client.widget.form.HtmlEditor;
import com.extjs.gxt.ui.client.widget.button.Button;
import java.util.List;
import java.util.ArrayList;
import com.extjs.gxt.ui.client.widget.form.TextField;
import com.extjs.gxt.ui.client.widget.form.ComboBox;
import com.extjs.gxt.ui.client.widget.toolbar.PagingToolBar;

public class DetalleCambio extends LayoutContainer {

	public DetalleCambio() {
		setWidth("990");
		
		VerticalPanel verticalPanel = new VerticalPanel();
		verticalPanel.setSpacing(3);
		
		HorizontalPanel horizontalPanel = new HorizontalPanel();
		horizontalPanel.setSpacing(2);
		
		VerticalPanel verticalPanel_1 = new VerticalPanel();
		verticalPanel_1.setSpacing(7);
		
		LabelField lblfldReferencia = new LabelField("Referencia");
		verticalPanel_1.add(lblfldReferencia);
		
		LabelField lblfldEsfuerzo = new LabelField("Esfuerzo");
		verticalPanel_1.add(lblfldEsfuerzo);
		
		LabelField lblfldResponsable = new LabelField("Responsable");
		verticalPanel_1.add(lblfldResponsable);
		
		LabelField lblfldEstado = new LabelField("Estado");
		verticalPanel_1.add(lblfldEstado);
		horizontalPanel.add(verticalPanel_1);
		verticalPanel_1.setWidth("220");
		
		VerticalPanel verticalPanel_2 = new VerticalPanel();
		verticalPanel_2.setSpacing(3);
		
		TextField textField = new TextField();
		verticalPanel_2.add(textField);
		textField.setFieldLabel("New TextField");
		
		TextField textField_1 = new TextField();
		verticalPanel_2.add(textField_1);
		textField_1.setFieldLabel("New TextField");
		
		ComboBox comboBox = new ComboBox();
		comboBox.setStore(new ListStore());
		verticalPanel_2.add(comboBox);
		comboBox.setFieldLabel("New ComboBox");
		
		ComboBox comboBox_1 = new ComboBox();
		comboBox_1.setStore(new ListStore());
		verticalPanel_2.add(comboBox_1);
		comboBox_1.setFieldLabel("New ComboBox");
		horizontalPanel.add(verticalPanel_2);
		verticalPanel_2.setWidth("220");
		
		VerticalPanel verticalPanel_3 = new VerticalPanel();
		verticalPanel_3.setSpacing(7);
		
		LabelField lblfldComplejidad = new LabelField("Complejidad");
		verticalPanel_3.add(lblfldComplejidad);
		
		LabelField lblfldIncertidumbre = new LabelField("Incertidumbre");
		verticalPanel_3.add(lblfldIncertidumbre);
		
		LabelField lblfldPrioridad = new LabelField("Prioridad");
		verticalPanel_3.add(lblfldPrioridad);
		
		LabelField lblfldTipo = new LabelField("Tipo");
		verticalPanel_3.add(lblfldTipo);
		horizontalPanel.add(verticalPanel_3);
		verticalPanel_3.setWidth("220");
		
		VerticalPanel verticalPanel_4 = new VerticalPanel();
		verticalPanel_4.setSpacing(3);
		
		ComboBox comboBox_3 = new ComboBox();
		comboBox_3.setStore(new ListStore());
		verticalPanel_4.add(comboBox_3);
		comboBox_3.setFieldLabel("New ComboBox");
		
		ComboBox comboBox_2 = new ComboBox();
		comboBox_2.setStore(new ListStore());
		verticalPanel_4.add(comboBox_2);
		comboBox_2.setFieldLabel("New ComboBox");
		
		ComboBox comboBox_4 = new ComboBox();
		comboBox_4.setStore(new ListStore());
		verticalPanel_4.add(comboBox_4);
		comboBox_4.setFieldLabel("New ComboBox");
		
		ComboBox comboBox_5 = new ComboBox();
		comboBox_5.setStore(new ListStore());
		verticalPanel_4.add(comboBox_5);
		comboBox_5.setFieldLabel("New ComboBox");
		horizontalPanel.add(verticalPanel_4);
		verticalPanel_4.setWidth("220");
		verticalPanel.add(horizontalPanel);
		horizontalPanel.setWidth("980");
		
		HorizontalPanel horizontalPanel_1 = new HorizontalPanel();
		horizontalPanel_1.setSpacing(3);
		
		VerticalPanel verticalPanel_5 = new VerticalPanel();
		
		LabelField lblfldDescripcin = new LabelField("Descripci\u00F3n");
		verticalPanel_5.add(lblfldDescripcin);
		
		TextArea textArea = new TextArea();
		textArea.setSize("900", "30");
		verticalPanel_5.add(textArea);
		textArea.setFieldLabel("New TextArea");
		
		LabelField lblfldMotivo = new LabelField("Motivo");
		verticalPanel_5.add(lblfldMotivo);
		lblfldMotivo.setWidth("460");
		
		HtmlEditor htmlEditor = new HtmlEditor();
		verticalPanel_5.add(htmlEditor);
		htmlEditor.setSize("900", "100");
		htmlEditor.setFieldLabel("New HtmlEditor");
		horizontalPanel_1.add(verticalPanel_5);
		verticalPanel_5.setWidth("960");
		verticalPanel.add(horizontalPanel_1);
		
		LabelField lblfldRequisitosImpactos = new LabelField("Requisitos Impactos");
		verticalPanel.add(lblfldRequisitosImpactos);
		List<ColumnConfig> configs = new ArrayList<ColumnConfig>();
		
		ColumnConfig clmncnfgReferencia = new ColumnConfig("id", "ID", 150);
		configs.add(clmncnfgReferencia);
		
		ColumnConfig clmncnfgDescripcion = new ColumnConfig("id", "Referencia", 150);
		configs.add(clmncnfgDescripcion);
		
		ColumnConfig clmncnfgDescripcion_1 = new ColumnConfig("id", "Descripcion", 150);
		configs.add(clmncnfgDescripcion_1);
		
		ColumnConfig clmncnfgComplejidad = new ColumnConfig("id", "Complejidad", 150);
		configs.add(clmncnfgComplejidad);
		
		ColumnConfig clmncnfgIncertidumbre = new ColumnConfig("id", "Incertidumbre", 150);
		configs.add(clmncnfgIncertidumbre);
		
		ColumnConfig clmncnfgEstado = new ColumnConfig("id", "Estado", 150);
		configs.add(clmncnfgEstado);
		
		Grid grid = new Grid(new ListStore(), new ColumnModel(configs));
		grid.setSize("960", "120");
		verticalPanel.add(grid);
		grid.setBorders(true);
		
		PagingToolBar pagingToolBar_2 = new PagingToolBar(10);
		verticalPanel.add(pagingToolBar_2);
		
		HorizontalPanel horizontalPanel_2 = new HorizontalPanel();
		horizontalPanel_2.setSpacing(6);
		
		Button btnQuitar = new Button("Quitar");
		horizontalPanel_2.add(btnQuitar);
		verticalPanel.add(horizontalPanel_2);
		List<ColumnConfig> configs_1 = new ArrayList<ColumnConfig>();
		
		HorizontalPanel horizontalPanel_4 = new HorizontalPanel();
		horizontalPanel_4.setSpacing(3);
		
		VerticalPanel verticalPanel_6 = new VerticalPanel();
		
		LabelField lblfldRequisitosDelProyecto = new LabelField("Requisitos del proyecto");
		verticalPanel_6.add(lblfldRequisitosDelProyecto);
		
		ColumnConfig clmncnfgId = new ColumnConfig("id", "ID", 150);
		configs_1.add(clmncnfgId);
		
		ColumnConfig clmncnfgReferencia_1 = new ColumnConfig("id", "Referencia", 150);
		configs_1.add(clmncnfgReferencia_1);
		
		ColumnConfig clmncnfgDescripcion_2 = new ColumnConfig("id", "Descripcion", 150);
		configs_1.add(clmncnfgDescripcion_2);
		
		ColumnConfig clmncnfgComplejidad_1 = new ColumnConfig("id", "Complejidad", 150);
		configs_1.add(clmncnfgComplejidad_1);
		
		ColumnConfig clmncnfgIncertidumbre_1 = new ColumnConfig("id", "Incertidumbre", 150);
		configs_1.add(clmncnfgIncertidumbre_1);
		
		ColumnConfig clmncnfgEstado_1 = new ColumnConfig("id", "Estado", 150);
		configs_1.add(clmncnfgEstado_1);
		
		Grid grid_1 = new Grid(new ListStore(), new ColumnModel(configs_1));
		verticalPanel_6.add(grid_1);
		grid_1.setSize("450", "150");
		grid_1.setBorders(true);
		
		PagingToolBar pagingToolBar = new PagingToolBar(10);
		verticalPanel_6.add(pagingToolBar);
		horizontalPanel_4.add(verticalPanel_6);
		
		VerticalPanel verticalPanel_7 = new VerticalPanel();
		
		LabelField lblfldRequisitosRelacionados = new LabelField("Requisitos relacionados");
		verticalPanel_7.add(lblfldRequisitosRelacionados);
		List<ColumnConfig> configs_2 = new ArrayList<ColumnConfig>();
		ColumnConfig clmncnfgId_1 = new ColumnConfig("id", "Id", 150);
		configs_2.add(clmncnfgId_1);
		
		ColumnConfig clmncnfgReferencia_2 = new ColumnConfig("id", "Referencia", 150);
		configs_2.add(clmncnfgReferencia_2);
		
		ColumnConfig clmncnfgDescripcin = new ColumnConfig("id", "Descripci\u00F3n", 150);
		configs_2.add(clmncnfgDescripcin);
		
		ColumnConfig columnConfig_3 = new ColumnConfig("id", "New Column", 150);
		configs_2.add(columnConfig_3);
		
		ColumnConfig columnConfig_4 = new ColumnConfig("id", "New Column", 150);
		configs_2.add(columnConfig_4);
		
		ColumnConfig columnConfig_5 = new ColumnConfig("id", "New Column", 150);
		configs_2.add(columnConfig_5);
		
		Grid grid_2 = new Grid(new ListStore(), new ColumnModel(configs_2));
		verticalPanel_7.add(grid_2);
		grid_2.setSize("450", "150");
		grid_2.setBorders(true);
		
		PagingToolBar pagingToolBar_1 = new PagingToolBar(10);
		verticalPanel_7.add(pagingToolBar_1);
		horizontalPanel_4.add(verticalPanel_7);
		verticalPanel.add(horizontalPanel_4);
		
		
		HorizontalPanel horizontalPanel_3 = new HorizontalPanel();
		horizontalPanel_3.setSpacing(6);
		
		Button btnAgregar = new Button("Agregar requisito");
		horizontalPanel_3.add(btnAgregar);
		
		Button btnAgregar_1 = new Button("Aceptar");
		horizontalPanel_3.add(btnAgregar_1);
		
		Button btnRechazar = new Button("Rechazar");
		horizontalPanel_3.add(btnRechazar);
		
		Button btnVolver = new Button("Volver");
		horizontalPanel_3.add(btnVolver);
		verticalPanel.add(horizontalPanel_3);
		add(verticalPanel);
		verticalPanel.setWidth("980");
	}

}
